﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using BUS;

namespace TuyenDungViecLam.VN
{
    public partial class TimViecNhanh : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                dlnganhnghe.DataSource = NganhNghe_BUS.DanhSachCacLinhVuc();
                dlnganhnghe.DataBind();
            }
        }

        protected void dlnganhnghe_ItemDataBound(object sender, DataListItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
            {
                Label MaLinhVuc = (Label)e.Item.FindControl("lbmanganhnghe");
                Repeater NganhNghe = (Repeater)e.Item.FindControl("rpnganhnghe");
                NganhNghe.DataSource = NganhNghe_BUS.DanhSachCacNganhNgheTheoLinhVuc(MaLinhVuc.Text);
                NganhNghe.DataBind();
            }
        }
    }
}
